package aecs

import (
	"fmt"

	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
)

// 可获取账号下所有云服务器基础信息的列表。
// todo aliyun not support DescribeInstancesInfo
func (c *Client) DescribeInstancesInfo(req *requests.RpcRequest) (response *responses.BaseResponse, err error) {
	// tea.String("hello")
	client := c.Client

	// BaseResponse: &responses.BaseResponse{},
	// response = responses.AcsResponse{}
	// req.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstancesInfo", "ecs", "openAPI")
	req.Method = "GET"
	req.Port = "8788"
	response = &responses.BaseResponse{}
	err = client.DoAction(req, response)
	if err != nil {
		return nil, fmt.Errorf("error DescribeInstanceStatus %w", err)
	}

	return response, nil
}
